﻿using Castle.Aop.IService;
using Castle.Aop.Service;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Castle.Aop.AspectsHub.Attributes
{
    public class DataAddLogAttribute : BaseAspectAttribute
    {
        public override async Task Befor(IAspectContext context)
        {
            var op = context.ServiceProvider.GetService<DemoService>();

            await Task.CompletedTask;
        }

        public override async Task After(IAspectContext context)
        {
            var op = context.ServiceProvider.GetService<DemoService>();

            await Task.CompletedTask;
        }
    }
}
